﻿// This class is "generated" and will be overwritten.
// Your customizations should be made in TestResultsRecord.cs

using System;
using System.Collections;
using System.Data.SqlTypes;
using BaseClasses;
using BaseClasses.Data;
using BaseClasses.Data.SqlProvider;

namespace BUGLOG.Business
{

/// <summary>
/// The generated superclass for the <see cref="TestResultsRecord"></see> class.
/// </summary>
/// <remarks>
/// This class is not intended to be instantiated directly.  To obtain an instance of this class, 
/// use the methods of the <see cref="TestResultsTable"></see> class.
/// </remarks>
/// <seealso cref="TestResultsTable"></seealso>
/// <seealso cref="TestResultsRecord"></seealso>
public class BaseTestResultsRecord : PrimaryKeyRecord
{

	public readonly static TestResultsTable TableUtils = TestResultsTable.Instance;

	// Constructors
 
	protected BaseTestResultsRecord() : base(TableUtils)
	{
	}

	protected BaseTestResultsRecord(PrimaryKeyRecord record) : base(record, TableUtils)
	{
	}







#region "Convenience methods to get/set values of fields"

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResultID field.
	/// </summary>
	public ColumnValue GetTestResultIDValue()
	{
		return this.GetValue(TableUtils.TestResultIDColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResultID field.
	/// </summary>
	public Int32 GetTestResultIDFieldValue()
	{
		return this.GetValue(TableUtils.TestResultIDColumn).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResult field.
	/// </summary>
	public ColumnValue GetTestResultValue()
	{
		return this.GetValue(TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResult field.
	/// </summary>
	public string GetTestResultFieldValue()
	{
		return this.GetValue(TableUtils.TestResultColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.TestResultColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResult field.
	/// </summary>
	public void SetTestResultFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestResultColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public ColumnValue GetTestResultDescriptionValue()
	{
		return this.GetValue(TableUtils.TestResultDescriptionColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public string GetTestResultDescriptionFieldValue()
	{
		return this.GetValue(TableUtils.TestResultDescriptionColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public void SetTestResultDescriptionFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.TestResultDescriptionColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public void SetTestResultDescriptionFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.TestResultDescriptionColumn);
	}


#endregion

#region "Convenience methods to get field names"

	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestResults_.TestResultID field.
	/// </summary>
	public Int32 TestResultID
	{
		get
		{
			return this.GetValue(TableUtils.TestResultIDColumn).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestResultIDColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestResultIDSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestResultIDColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResultID field.
	/// </summary>
	public string TestResultIDDefault
	{
		get
		{
			return TableUtils.TestResultIDColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestResults_.TestResult field.
	/// </summary>
	public string TestResult
	{
		get
		{
			return this.GetValue(TableUtils.TestResultColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestResultColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestResultSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestResultColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResult field.
	/// </summary>
	public string TestResultDefault
	{
		get
		{
			return TableUtils.TestResultColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public string TestResultDescription
	{
		get
		{
			return this.GetValue(TableUtils.TestResultDescriptionColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.TestResultDescriptionColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool TestResultDescriptionSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.TestResultDescriptionColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's TestResults_.TestResultDescription field.
	/// </summary>
	public string TestResultDescriptionDefault
	{
		get
		{
			return TableUtils.TestResultDescriptionColumn.DefaultValue;
		}
	}


#endregion
}

}
